package com.ripplezjw.blog.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.text.SimpleDateFormat;

@Configuration
public class TimeConfig {
    private static final String DATE_FORMAT = "yyyy-MM-dd";
    @Bean
    public SimpleDateFormat simpleDateFormat() {
        return new SimpleDateFormat(DATE_FORMAT);
    }
}
